package team.pra.manager.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import team.pra.manager.common.PageBean;
import team.pra.manager.common.PageHelper;
import team.pra.manager.pojo.Account;
import team.pra.manager.pojo.Room;

import java.util.List;
import java.util.Map;

public interface AccountMapper {

    List<Account> queryByPage(PageBean<Account> pageBean);

    Account queryById(Integer id);

    List<Account> queryAll();

    Boolean insert(Account account);

    Boolean update(Account account);

    Boolean delete(Integer id);

    Integer countAccountNumber();

    List<Account> findAccountByCondition(PageHelper pageHelper);
    Integer filterAccountCount(PageHelper pageHelper);
}
